/**
 * 
 */

package CCT220_Aula13_Exercicio01a_13106;

/**
 * ******************************
 * Project: CCT220
 * Package: CCT220_Aula13_Exercicio01_13106
 * Class: LimiteDisciplina
 * Last Change: 29/09/2011 13:05:38
 * Description:
 * ******************************
 * 
 * @author marcel
 * @author 13106
 * 
 */
public class LimiteDisciplina {

	private final ControleDisciplina ctrDisc = new ControleDisciplina();


	/**
	 * ******************************
	 * Package: CCT220_Aula13_Exercicio01_13106
	 * Class: LimiteDisciplina
	 * Method: capturaDados
	 * Last Change: 29/09/2011 13:06:12
	 * Description:
	 * ******************************
	 * 
	 */
	public void capturaDados() {

		ctrDisc.insereDisciplina(1, "Desenvolvimento OO", 108);
		ctrDisc.insereDisciplina(2, "Estrutura de dados", 60);
		ctrDisc.insereDisciplina(3, "Data Warehouse", 60);
	}


	/**
	 * ******************************
	 * Package: CCT220_Aula13_Exercicio01_13106
	 * Class: LimiteDisciplina
	 * Method: imprimeDisciplinas
	 * Last Change: 29/09/2011 13:06:14
	 * Description:
	 * ******************************
	 * 
	 */
	public void imprimeDisciplinas() {

		System.out.println(ctrDisc.imprimeDisciplinas());
	}


	/**
	 * ******************************
	 * Package: CCT220_Aula13_Exercicio01_13106
	 * Class: LimiteDisciplina
	 * Method: imprimeDisciplina
	 * Last Change: 29/09/2011 13:06:16
	 * Description:
	 * ******************************
	 * 
	 * @param pCodigo
	 */
	public void imprimeDisciplina(int pCodigo) {

		System.out.println(ctrDisc.imprimeDisciplina(pCodigo));
	}


	/**
	 * ******************************
	 * Package: CCT220_Aula13_Exercicio01_13106
	 * Class: LimiteDisciplina
	 * Method: main
	 * Last Change: 29/09/2011 13:05:38
	 * Description:
	 * ******************************
	 * 
	 * @param args
	 */
	public static void main(String[] args) {

		LimiteDisciplina limDisc = new LimiteDisciplina();
		limDisc.capturaDados();
		limDisc.imprimeDisciplinas();
		System.out.println("-------------------");
		limDisc.imprimeDisciplina(2);
	}

}
